﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IDictionary<EKAABSInformationManagement.Database.asset, IEnumerable<EKAABSInformationManagement.Database.assetHistory>>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    资产历史记录
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
<div class="dashboard"><h id="toph">一个月内资产状态</h></div>
    <%foreach (EKAABSInformationManagement.Database.asset ass in Model.Keys)
      {%>
    <fieldset>
        <legend>
            <%=ass.assetID %>, model:
            <% =ass.model%>, type:
            <% =ass.type%></legend>
        <%foreach (EKAABSInformationManagement.Database.assetHistory h in Model[ass])
          { %>
        <p id="historyDisplay">
            <%=h.date.HasValue?h.date.Value.ToShortDateString():""%>起，该资产隶属于<%=h.empID %></p>
        <%} %>
    </fieldset>
    <%} %>
</asp:Content>
